package org.neuedu.chapter05_0618;

public class MethodDemo08 {

    public static void main(String[] args) {
        int cj = test(5);
        System.out.println(cj);
        test2();
    }

    public static void test2() {
        if (9 > 81) {
            System.out.println(123);
            return;
        }
        System.out.println(1234);
    }

    public static int test(int n) {
        int cj = 1;
        for (int i = 1; i <= n; i++) {
            cj = cj * i;
        }
        return cj;
    }
}
